var React = require('react');
module.exports = React.createClass({
    getInitialState:function(){
        return {liked:false};
    },
    render:function(){
        var text = this.state.liked ? 'like' : 'haven\'t liked';
        return (
            <p onClick={this.handleClick.bind(this,123)}>
                You {text} this. Click to toggle.
            </p>
        )
    },
    handleClick:function(c,e){
        console.log(c);
        console.log(e);
        this.setState({liked:!this.state.liked});
    }
});